import request from '../utils/request';

export function fetchDataFromApi(query) {
    return request({
        url: 'https://www.jiangnanzhizaofu.com//WechatSystem/ApiService.ashx',
        // url: 'http://localhost:8092/ApiService.ashx',
        // url:'https://www.jiangnanzhizaofu.com/WechatApi/SysIn/#/commodity',
        // url:'https://www.jiangnanzhizaofu.com/WechatSystem/#/commodity',
        method: 'get',
        params: query
    })
}
export function fetchDataFromApiPost(data) {
    return request({
        url: 'https://www.jiangnanzhizaofu.com//WechatSystem/ApiService.ashx',
        // url: 'http://localhost:8092/ApiService.ashx',
        // url:'https://www.jiangnanzhizaofu.com/WechatApi/SysIn/#/commodity',
        // url:'https://www.jiangnanzhizaofu.com/WechatSystem/#/commodity',
        method: 'post',
        data
    })
}
